import { defHttp } from '/@/utils/http/axios'

export function getCount() {
	return defHttp.get({ url: `Warnings/Realtime/Count` })
}
export function gethisCount() {
	return defHttp.get({ url: `Warnings/History/Count` })
}
export function gethisCountInfo(type) {
	return defHttp.get({ url: `Warnings/History/Count/${type}` })
}
export function getolLine() {
	return defHttp.get({ url: `devices/OnlineStatus` })
}
export function getMap() {
	return defHttp.get({ url: `Maps/RoleMaps` })
}

// export function getBracelet(params) {
// 	return defHttp.get({ url: `stats/devices/${params}/online/status` })
// }
// export function getAlarm(params) {
// 	return defHttp.get({ url: `stats/warnings/${params}/history` })
// }
// export function getpersonnel(params) {
// 	return defHttp.get({ url: `stats/binders/${params}` })
// }
// export function getbattery(params) {
// 	return defHttp.get({ url: `stats/devices/${params}/battery/low` })
// }
// export function getgive(params) {
// 	return defHttp.get({ url: `Warnings/RealTime`, params })
// }
